Previous topicNext topic
Help > The Inline Assembler >
Commenting Assembly code

On assembly code lines, a semi-colon ( ; ) is typically used for comments, although an apostrophe ( ' ) is still valid. For example:

SUB KerPlunk

 ASM PUSH EBX             ; Save EBX

 ASM MOV  EAX, 5          ; Put 5 into EAX

   ! MOV  EBX, &HFF       ; Put FFh into EBX

   ! ADD  EAX, EBX        ' EAX = EAX + EBX

   ! POP  EBX             ' Restore EBX

END SUB

 

See Also

The Inline Assembler